#ifndef ODBC_DETAILS_STATEMENT_VISITOR_HPP
#define ODBC_DETAILS_STATEMENT_VISITOR_HPP

#include "odbc/statement.hpp"

namespace odbc { namespace details
{

/// \internal
/// \brief 
///		Just an utility class, providing a method for getting the statement handle from odbc::statement class.
/// \details
///		Inherit from this class, to get access to the handle.
///		\n
///		This class is friend of odbc::details class.
class statement_visitor
{
protected:
	static SQLHSTMT get_statement_handle( statement& stat)
	{
		return stat.handle_;
	}
};

} } // namespace details // namespace odbc

#endif // ODBC_DETAILS_STATEMENT_VISITOR_HPP
